package com.zengzhi.mydesignmode.strategymode;

/**
 * @author xiejiawei
 * @Date 2021-08-14
 * @Time 22:28
 * 模型鸭子
 */
public class ModelDuck extends Duck {

    ModelDuck(){
        flyBehavior = new FlyNoWay();
        quackBehavior = new Quack();
    }
    /**
     * 显示行为的方法
     */
    @Override
    void disPlay() {
        System.out.println("I'm a model duck");
    }
}
